package Builder;

import BodyComponent.Human;

public class BuilderDirector {
    ABuilder builderInstance;

    public BuilderDirector(ABuilder builder) {
        builderInstance = builder;
    }

    public void ChangeBuilder(ABuilder builder) {
        builderInstance = builder;
    }

    public Human GetHuman() {
        Human newHuman = new Human();
        newHuman.SetEyes(builderInstance.BuildEyes());
        newHuman.SetMouth(builderInstance.BuildMouth());
        newHuman.SetFoot(builderInstance.BuildFoot());
        return newHuman;
    }
}
